/** $Id: imp_animation_macros.h 17 2005-10-09 11:22:59Z trondd $
 *
 * Copyright 2005 Omega Verksted.
 * 
 * This file is part of Imponator 2005.  Imponator 2005 is free
 * software; you can redistribute it and/or modify it under the terms of
 * the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any
 * later version. 
 *
 * Imponator 2005 is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Imponator 2005; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
 * USA 
 * 
 */

#ifndef _IMP_ANIMATION_MACROS_H
#define _IMP_ANIMATION_MACROS_H

#define EO_ANIM {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},0xff}

#define SHIFT_ONE_CCW {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f}, 0x00}

#define SHIFT_ONE_CW {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0}, 0x00}

#define FLASH {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, 0x00}, \
  {{0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77}, 0x00}, \
  {{0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11}, 0x00}, \
  {{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11}, 0x00}

#define FADE_OUT {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, 0x00}, \
  {{0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd}, 0x00}, \
  {{0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb}, 0x00}, \
  {{0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99}, 0x00}, \
  {{0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77}, 0x00}, \
  {{0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55}, 0x00}, \
  {{0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33}, 0x00}, \
  {{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11}, 0x00}

#define FADE_IN {{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11}, 0x00}, \
  {{0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33}, 0x00}, \
  {{0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55}, 0x00}, \
  {{0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77}, 0x00}, \
  {{0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99}, 0x00}, \
  {{0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb}, 0x00}, \
  {{0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, 0x00}

#define FILL_FROM_LEFT {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0xff, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0xff, 0xff, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0xf0}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, 0x00}

#define FILL_FROM_RIGHT {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0x00, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0xff, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0xff, 0xff, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0xff, 0xff, 0xff, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x0f}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, 0x00}


#define CLEAR_FROM_LEFT {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0xf0}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0xff, 0xff, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0xff, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0xf0, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xf0, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}


#define CLEAR_FROM_RIGHT {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x0f}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0xff, 0xff, 0xff, 0xff, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0xff, 0xff, 0xff, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0xff, 0xff, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0xff, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0x00, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x0f, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0f, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f}, 0x00}, \
  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}


#define ALL_BLACK  {{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0x00}

#endif
